import Layout from '@/layout'
import Files from '@/views/video/files'
export default {
  path: '/video',
  component: Layout, // 一级路由组件
  redirect: '/video/movie',
  meta: { title: '视频管理', icon: 'el-icon-video-camera-solid' },
  children: [
    {
      path: 'movie', // ,不为空时是 一级path+二级path,二级不用加 /
      name: 'Movie',
      component: () => import('@/views/video/movie/index'),
      meta: {
        title: '电影管理',
        icon: 'el-icon-s-platform'
      }
    },
    {
      path: 'images', // 不为空时是 一级path+二级path,二级不用加 /
      name: 'Images',
      component: () => import('@/views/video/images/index'),
      meta: {
        title: '图片管理',
        icon: 'el-icon-picture'
      }
    },
    {
      path: 'files', // 不为空时是 一级path+二级path,二级不用加 /
      name: 'Files',
      component: Files,
      meta: {
        title: '文件管理',
        icon: 'el-icon-s-claim'
      },
      children: [
        {
          path: 'pom',
          name: 'Pom',
          component: () => import('@/views/video/files/pom/index.vue'),
          meta: {
            title: '配置管理',
            icon: 'el-icon-s-flag'
          }
        },
        {
          path: 'resource',
          name: 'Resource',
          component: () => import('@/views/video/files/resource/index.vue'),
          meta: {
            title: '资源管理',
            icon: 'el-icon-s-finance'
          }
        }
      ]
    }
  ]
}
